﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="category_add.aspx.cs" Inherits="WebSite.admin.product.category_add" %>

<%@ Register assembly="CuteEditor" namespace="CuteEditor" tagprefix="CE" %>
<%@ Register Src="../languages.ascx" TagName="head" TagPrefix="uc1" %>
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>良臣直销网 </title>
    <link href="../main.css" rel="stylesheet" type="text/css" />
    <script language="javascript">
        parent.maintitle.innerHTML = "商品管理";
        parent.contentmain.innerHTML = "<span class='title01'>所在位置：</span>添加分类"
    </script>
    <script language='javascript'>
        var path = (window.top.location).toString();
        if (path.indexOf('login.aspx') == -1) {
            if (path.indexOf('index.aspx') == -1) {
                window.top.location = 'index.aspx';
            }
        }
	</script>
	<script language="JavaScript" src="../../js/function.js"></script>
    <script language="javascript">
        function CheckFrm() {
            var obj = 'classname';
            var objt = '1';
            var msg = '分类名称';
            var chks = chk(form1, obj, objt, msg)
            if (!chks) {
                return false;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <center>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F1F4F7">
<tr>
<td height="382" align="center" valign="top">
  <br />
  
  <table Width="98%" border="0" cellpadding="5" cellspacing="0">
    <tr id="cn" style="display:;" runat="server">
      <td align="right" width="15%">分类名称：</td>
      <td align="left"><input size="27" name="classname" id="classname" runat="server" />* </td>
    </tr>
    
    <tr align="center" id="typecn" style="display:;" runat="server">
      <td align="right" width="15%">上级分类：</td>
      <td align="left">
      <asp:DropDownList ID="typeidc" runat="server">
          <asp:ListItem Value="0">顶级分类</asp:ListItem>
      </asp:DropDownList>
      </td>
    </tr>
    
    <!--tr>
      <td align="right" width="15%">数量单位：</td>
      <td align="left"><input size="12" name="classpcs" id="classpcs" runat="server" />      </td>
    </tr-->
      
    <tr>
      <td align="right" width="15%">排序：</td>
      <td align="left"><input size="15" value="0" name="classorder" id="classorder" runat="server" />      </td>
    </tr>
    <tr>
      <td align="right">是否显示：</td>
      <td align="left"><asp:CheckBox ID="CheckBox1" runat="server" Checked="true" /></td>
    </tr>
    <!--tr>
      <td align="right">显示在导航栏：</td>
      <td align="left"><asp:CheckBox ID="CheckBox2" runat="server" /></td>
    </tr-->
    <!--tr>
      <td align="right">关键字：</td>
      <td align="left"><input size="50" name="classkey" id="classkey" runat="server" />      </td>
    </tr-->
    <tr id="cnco" style="display:;" runat="server">
      <td align="right">分类描述：</td>
      <td align="left">
          
        <CE:Editor id="WE_NewsContent" runat="server" AutoConfigure="Simple" 
                    BreakElement="Br" Width="100%"  Height="350px" ></CE:Editor>
      </td>
    </tr>
   <tr align="center">
			    <td width="15%" height="22" align="right">类别图片：</td>
			    <td align="left"><asp:TextBox ID="classpic" runat="server"></asp:TextBox>
                    <input id="file1" type="file" runat="server" /><asp:Button ID="Button1" runat="server" Text="上传" OnClick="Button1_Click" />
                    </td>
		      </tr>
    <tr>
      <td align="right">&nbsp;</td>
      <td height="35" align="left">
      <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="../images/buttom-02.gif" OnClick="ImageButton1_Click" />
       <a href="javascript:form1.reset();"><img src="../images/button03.gif" border="0" /></a></td>
    </tr>
  </table>
  </td>
</tr>
</table>
</center>
    </div>
    </form>
</body>
</html>
